package lab02.Test29;

/**
 * Created by Administrator on 2017/11/3.
 */
public class Test29 {
    public static void main(String[] args) {
        int [] numbers = new int[5];
        numbers[0]=1;
        numbers[1]=2;
        numbers[2]=3;
        numbers[3]=4;
        numbers[4]=5;
      try {
          System.out.println(numbers[5]);
      }catch (ArrayIndexOutOfBoundsException e){
          System.out.println("数组下标越界！");
      }finally{
          System.out.println("不管如何最终都会执行的代码！！");
      }
    }
}
